:root {
  font-family: 'Huninn', 'PingFang SC', -apple-system, BlinkMacSystemFont, system-ui, Avenir, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;
  color-scheme: light;
  color: rgba(255, 255, 255, 0.87);
  background-color: #242424;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
}

@font-face {
  font-family: 'Huninn';
  src: url('../assets/fonts/Huninn-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background-color: #f5f5f5;
  overflow-x: hidden; /* 防止水平滚动条 */
  font-family: 'Huninn', 'PingFang SC', -apple-system, BlinkMacSystemFont, sans-serif;
}

#root {
  min-height: 100vh;
}

.trigger {
  font-size: 18px;
  line-height: 64px;
  padding: 0 24px;
  cursor: pointer;
  transition: color 0.3s;
}

.trigger:hover {
  color: #1890ff;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* 确保固定定位元素的层级 */
.ant-layout-header {
  z-index: 1000 !important;
}

/* 平滑滚动 */
html {
  scroll-behavior: smooth;
}

/* 防止内容区域被固定 Header 遮挡 */
.ant-layout-content {
  overflow: visible;
}

/* 全局字体设置 */
* {
  font-family: 'Huninn', 'PingFang SC', -apple-system, BlinkMacSystemFont, sans-serif !important;
}
